package com.bsdsma.visonManagementSystemapp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bsdsma.visonManagementSystemapp.entity.Teacher;
import com.bsdsma.visonManagementSystemapp.dto.DataGroupByDateDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;

@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {
    List<DataGroupByDateDto> countByDay(@Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
    IPage<Teacher> selectPageWithSchool(Page<Teacher> page, @Param("ew") Object wrapper);
    Teacher selectByIdWithSchool(@Param("id") Long id);
} 